package user;

import book.BookList;
import opertation.IOPertation;

abstract public  class User {

     String name;
     protected IOPertation[] ioPertation;// IOP接口类型数组

     protected User(String name) {//构造方法
        this.name = name;
        ioPertation = new IOPertation[]{//构造菜单对应的操作类数组
        };
    }
     public abstract int manu();//菜单
    public void dopertation(int operta, BookList bookList) {
        ioPertation[operta].work(bookList);
        //         编号           操作的交互
    }
}
